<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

Route::get('think', function () {
    return 'hello,ThinkPHP5!';
});

//  测试生成token
Route::rule('test', 'test/test');
//  测试token是否合法
Route::rule('check', 'test/checkJwt');
//  推荐列表
Route::rule('command', 'article/cmdList');
//  获取文章列表
Route::rule('article', 'article/getCategory');
//  根据id查文章
Route::rule('details/:id', 'article/getArticleById');
//  修改文章
Route::rule('edit/:id', 'article/editArticle');
//  删除文章
Route::rule('delete/:id', 'article/delArticle');
//  添加文章
Route::rule('add', 'article/addArticle');
//  查询文章
Route::rule('search', 'article/searchArticle');
//  修改用户信息
Route::rule('change', 'user/editUserInfo');
Route::rule('pass', 'user/changePassword');




//  注册
Route::post('logup', 'user/logup');
//  登录
Route::rule('login', 'user/login');

return [

];
